package com.lhys.service;

import com.github.pagehelper.PageInfo;
import com.lhys.dto.AssetUserDto;
import com.lhys.pojo.AssetUser;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2021/5/14
 * Time: 下午 18:31
 * Description: 资产用户业务层接口
 */
public interface AssetUserService {

    /**
     * 保存用户
     * @param assetUser
     * @return
     */
    Boolean saveAssetUser(AssetUser assetUser);

    /**
     * 根据id删除用户
     * @param id
     * @return
     */
    Boolean delAssetUserById(Integer id);

    /**
     * 登录
     * @param assetUser
     * @return
     */
    AssetUser getAssetUserByLoginNameAndPassword(AssetUser assetUser);

    /**
     * 查询所有用户，分页
     * @param assetUser
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<AssetUser> listAssetUserByPage(AssetUser assetUser , Integer pageNum , Integer pageSize);

    Boolean updatePasswordById(AssetUserDto assetUserDto);
}
